package com.example.mall_system.service;

import com.example.mall_system.common.Result;
import com.example.mall_system.entity.Product;
// 由于 java.util.List 未被使用，移除该导入语句

public interface ProductService {
    Result getAllProducts(int page, int size, String keyword);
    Result<Product> getProductById(Long id);
    Result<Product> addProduct(Product product, Long userId, Integer role);
    Result<Boolean> updateProduct(Product product, Long userId, Integer role);
    Result<Boolean> deleteProduct(Long id, Long userId, Integer role);
    Result getProductsByCategory(String category);
    Result<Boolean> checkAndUpdateStock(Long productId, Integer quantity);
    Result getSellerProducts(Long sellerId);
    Result<Boolean> batchDeleteProducts(Long[] productIds, Long userId, Integer role);
}